luci-proto-yggdrasil: fix interface selection
authorAlexander Ivanov <[email protected]>
Sun, 13 Jul 2025 09:07:02 +0000 (17:07 +0800)
committerPaul Donald <[email protected]>
Tue, 23 Sep 2025 18:08:10 +0000 (20:08 +0200)
Package `yggdrasil` doesn't support network names and aliases.

Signed-off-by: Alexander Ivanov <[email protected]>
protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js

index 4cfa62583f62febe5cb14b447f5c74c24e99ffa6..87cd7e9f1c328802caee2143d1d969c27fed5c0c 100644 (file)
@@ -276,7 +276,9 @@ return network.registerProtocol('yggdrasil',
                        o=ss.option(form.Value,"address",_("Peer URI"));
                        o.placeholder="tls://0.0.0.0:0"
                        o.validate=validateYggdrasilPeerUri;
-                       ss.option(widgets.NetworkSelect,"interface",_("Peer interface"));
+
+                       o=ss.option(widgets.DeviceSelect,"interface",_("Peer interface"));
+                       o.noaliases=true;
 
                        o=s.taboption('peers', form.SectionValue, '_interfaces', form.TableSection, 'yggdrasil_%s_interface'.format(this.sid), _("Multicast rules"))
                        ss=o.subsection;
@@ -286,6 +288,7 @@ return network.registerProtocol('yggdrasil',
 
                        o=ss.option(widgets.DeviceSelect,"interface",_("Devices"));
                        o.multiple=true;
+                       o.noaliases=true;
 
                        ss.option(form.Flag,"beacon",_("Send multicast beacon"));